package y;
public class Application {
    public static void main(String[] a) {
        Simulator simulator = new Simulator();
        simulator.playSound(new dog());
        simulator.playSound(new cat());
        simulator.playSound(new yy());
    }
}